package com.prs.crm.domain.project;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.SimpleFlowEntity;
import com.prs.crm.domain.hr.Person;

/**
 * 任务转发
 * @author prs.chenzhi
 *
 */
@Entity
@Table(name="prj_tasktransmit")
public class TaskTransmit extends SimpleFlowEntity {

	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private Person reciver;
	
	@ManyToOne(cascade = {CascadeType.MERGE,CascadeType.PERSIST})
	private Task task;
	
	/**
	 * 转发原因
	 */
	@Lob
	private String reason;
	

	
	private Integer status;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setReciver(Person reciver) {
		this.reciver = reciver;
	}

	public Person getReciver() {
		return reciver;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getReason() {
		return reason;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setTask(Task task) {
		this.task = task;
	}

	public Task getTask() {
		return task;
	}




	

}
